<div class="tableData">
	<h2> Overview Of All The Users </h2>

	<table>
		<thead>
			<tr>
				<th>Last Name</th>
				<th>First Name</th>
				<th>Email</th>
				<th></th>
				<th></th>
			</tr>
		</thead>

		<?php foreach( $users  as $user): ?>
	
		<tr>
			<td class="listing_data"><?php echo $user['User']['lastname']; ?></td>
			<td class="listing_data"><?php echo $user['User']['firstname']; ?></td>
			<td class="listing_data"><?php echo $user['User']['email']; ?></td>
			<td class="listing_data"><?php 
			
			echo $this->Html->link("Edit Access", array(
											'controller' => 'UserAccess', 
											'action' => 'edit',
											$user['User']['id']
											));
			
			?></td>
			<td class="listing_data"><?php 
			
			echo $this->Html->link("User Group", array(
											'controller' => 'UserGroup', 
											'action' => 'edit',
											$user['User']['id']
											));
			
			?></td>
		</tr>	
	
		<?php endforeach ?>

	</table>
</div>